package org.dtrd.modules.record.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.record.entity.bean.AvgBloodPressure;
import org.dtrd.modules.record.entity.po.DtrdViewRlDailyGroupBloodPressure;
import org.springframework.stereotype.Repository;

@Repository
public interface DtrdViewRlDailyGroupBloodPressureMapper extends BaseMapper<DtrdViewRlDailyGroupBloodPressure> {

    /**
     * 计算时间段内血压平均值
     *
     * @param patientId
     * @param startDate
     * @param endDate
     * @return
     */
    AvgBloodPressure getAvgBloodPresssure(@Param("patientId") Integer patientId, @Param("startDate") String startDate, @Param("endDate") String endDate);
}